package com.attilax.formH5;

import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

import com.attilax.Closure;
import com.attilax.io.pathx;
import com.attilax.ui.atiBrowserExample;

public class BrowserForm extends SwtLauncher {

//	Shell shell;
	static Display display=new Display();;
	public atiBrowserExample atiBrowserExampleinstance;

	public BrowserForm() {
		 
		super(display);
	//	shell =  BrowserForm(display);
		
		this.setLayout(new FillLayout());
		this.setText("Browser example");
		// shell.setVisible(false);
		// shell.setSize(1, 1);

		atiBrowserExampleinstance = new atiBrowserExample(this);
		// Image icon = new Image(display, "C:/icons/web/go.gif");
		// shell.setImage(icon);
	
		// urlgoto="c:/1.txt";
	//	System.out.println(urlgoto);
	

	
	}

 

 
	public void show() {
		this.open();

	}

	public void regJsCallbackMeth(String string, Closure closure) {
		atiBrowserExampleinstance.regJsCallbackMeth(string, closure);
	}

	public void threadRecycle() {
		threadRecycle(display, this);
	}




	public void regJsCallbackMeth_4jsonParam(String string, Closure closure) {
		atiBrowserExampleinstance.regJsCallbackMeth_4jsonParam(string, closure);
		
	}
}
